// Don't modify this file as it will be overwritten.
//
#include "IDL_UserDataType.h"

TestData::TestData(const TestData &IDL_s){
  payload = IDL_s.payload;
  md5 = IDL_s.md5;
  seq_num = IDL_s.seq_num;
  send_time = IDL_s.send_time;
}

TestData& TestData::operator= (const TestData &IDL_s){
  if (this == &IDL_s) return *this;
  payload = IDL_s.payload;
  md5 = IDL_s.md5;
  seq_num = IDL_s.seq_num;
  send_time = IDL_s.send_time;
  return *this;
}

void TestData::Marshal(CDR *cdr) const {
  payload.Marshal(cdr);
  cdr->PutString(md5);
  cdr->PutULongLong(seq_num);
  cdr->PutULongLong(send_time);
}

void TestData::UnMarshal(CDR *cdr){
  payload.UnMarshal(cdr);
  {
    char *IDL_str;
    cdr->GetString(IDL_str);
    if(md5 != NULL )
    {
        delete md5;
        md5 = NULL;
    }
    md5 = IDL_str;
  }
  cdr->GetULongLong(seq_num);
  cdr->GetULongLong(send_time);
}

